//
//  SCNTypeButton.swift
//  ShoucainuSwift
//
//  Created by 王家旭 on 2017/5/16.
//  Copyright © 2017年 Riluee. All rights reserved.
//

import UIKit

class SCNTypeButton: UIButton {

    override init(frame: CGRect) {
        
        super.init(frame: frame)

        self.setImage(UIImage(named: "more_checkbox_normal"), for: .normal)
        self.setImage(UIImage(named: "more_checkbox_selected"), for: .selected)
        self.layer.borderColor = UIColor.lightGray.cgColor
        self.layer.borderWidth = 0.5
        self.layer.cornerRadius = 5.0
        self.titleLabel?.font = UIFont.systemFont(ofSize: 14.5)
        self.setTitleColor(SCNConstants.colorWith255RGBA(36, g: 36, b: 36, a: 1), for: .normal)
        self.titleEdgeInsets = UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 0)
        self.imageEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 8)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
